package com.jzo2o.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum SmsBussinessTypeEnum {
    INSTITION_REGISTER(1), INSTITUTION_RESET_PASSWORD(2), SERVE_STAFF_LOGIN(3);

    private int type;
    
    public static SmsBussinessTypeEnum getByType(Integer type) {
        if (type == null) {
            return null;
        }
        for (SmsBussinessTypeEnum value : values()) {
            if (value.type == type) {
                return value;
            }
        }
        return null;
    }
}